home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11357 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: macqbl.com.au!usenet
  2. From: drubie@macquarie.com.au (David Rubie)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: First Big One
  5. Date: 14 Mar 1996 01:13:38 GMT
  6. Organization: Macquarie Bank Ltd.
  7. Message-ID: <4i7rs2$mp6@mblisd.macqbl.com.au>
  8. References: <4i4oa4$ga9@nova.umuc.edu>
  9. Reply-To: drubie@macquarie.com.au
  10. NNTP-Posting-Host: isd47.macqbl.com.au
  11.  
  12. In article <4i4oa4$ga9@nova.umuc.edu>, srussell@nova.umuc.edu (Steve Russell) writes:
  13. [munch]
  14. >Im finnishing up the second of a 2 semester intro to c++ and
  15. >programming.  I have a rudimentry knowledge of classes.  Im confident
  16. >I can write the number crunching, but as a lowly student I don't
  17. >if it is practical for me to try to solve the following problems.
  18. >Are the following things in reach, Im willing to do some reading
  19. >( so please direct me:))
  20. >
  21. >
  22. [good questions deleted]
  23. >Anything else a starting student might not be aware of trying to
  24. >write a serious program.
  25. >
  26.  
  27. Steve,
  28.  
  29. Even if the class structure of your new program is clunky, it is
  30. hard to run or it's delivered on 50 floppy disks, the worst that
  31. can happen is that it produces the wrong numbers.
  32.  
  33. Anything to do with money is always problematic, especially
  34. if you have to do percentage work with taxes. etc.
  35.  
  36. The biggest beginner mistake I see is a miscomprehension about
  37. how accurate the floating point number system is - it can result
  38. in all sorts of missing decimal places etc. if you aren't careful.
  39. You have to remember that some numbers aren't trivially
  40. represented by the binary system that a computer uses (especially
  41. fractions).
  42.  
  43. Read up on floats/doubles etc. and think about the number rounding
  44. problems you're going to have displaying data to the user.  While
  45. you won't get beaten up too much at University for an inaccurate
  46. assignment, if you're dealing with real money then the accountant
  47. or owner of the shop is going to get real mad, real fast if you're
  48. calculations prove to be wrong.
  49.  
  50. Good luck.
  51.  
  52. dave.
  53.  
  54.  
  55.  
  56. -- 
  57. -------------------------------------------------------
  58. David Rubie
  59. Macquarie Bank Ltd.
  60. drubie@macqbl.com.au
  61.  
  62.  
  63.